package gao.xiaolei.util;

public enum ServiceName {

	// 枚举类的实例对象必须在最前面先定义，而且必须每个实例对象都必须维护上serviceName成员变量
	AUTH_SERVICE("http://training-auth-manage-service"),
	IMAGE_SERVICE("http://training-image-manage-service"),
	TASK_SERVICE("http://training-task-manage-service"),
	TEST_SERVICE("http://training-test-manage-service"),
	GIT_SERVICE("http://training-git-service"),
	WEB_SERVICE("http://training-web-service");

	private String serviceName;

	// 枚举类型的构造函数默认为private，因为枚举类型的初始化要在当前枚举类中完成。
	ServiceName(String serviceName) {
		this.serviceName = serviceName;
	}

	public String getServiceName() {
		return serviceName;
	}

}
